@import '../../style/themes';
@import '../../style/mixins';

$modal: x-modal;

.#{$modal} {
  &-container {
    @include reset-component();
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: auto;
    background-color: transparent;
    transition: background-color 1.3s;
    z-index: 1;
  }
  &-mask {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    &.show {
      background: rgba(#000000, .2);
    }
  }

  position: relative;
  top: 20%;
  margin: 0 auto auto;
  outline: 1px solid $modal-border-color;
  box-shadow: 1px 1px 25px -10px #000;
  
  // transition
  &-enter-active, &-leave-active {
    transition: all .3s cubic-bezier(.3,.3,.3,1);
  }
  &-enter-from, &-leave-to {
    opacity: 0;
    transform: scale(.9);
  }

  &_icon {
    &-info {
      color: $primary-color;
    }
    &-check {
      color: $primary-color;
    }
  }

  &_body {
    @include reset-scroll();
    overflow: auto;
  }
  &_footer {
    
  }
  &_cancel, &_ok {
    min-width: 86px;
  }

  &-info-body {

  }
  &-btns {
    margin-top: $margin-xs;
  }
}